package com.zlsy.springbootdemo.entity.template.dismax;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.TypeAlias;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhouliang
 * @date 2020/6/6 11:52
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TypeAlias("templatedismax")
@Document(indexName = "templatedismax", shards = 1, replicas = 0)
public class TemplateDisMaxEntity {

    @Id
    private Long id;

    @Field(type = FieldType.Text)
    private String title;

    @Field(type = FieldType.Text)
    private String content;
}
